package com.java.module.fire.service.impl;

import java.util.List;
import com.java.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.java.module.fire.mapper.UninterestedMapper;
import com.java.module.fire.domain.Uninterested;
import com.java.module.fire.service.IUninterestedService;

/**
 * 不感兴趣Service业务层处理
 * 
 * @author Administrator
 * @date 2025-06-23
 */
@Service
public class UninterestedServiceImpl implements IUninterestedService {
    @Autowired
    private UninterestedMapper uninterestedMapper;

    /**
     * 查询不感兴趣
     * 
     * @param uninterestedId 不感兴趣ID
     * @return 不感兴趣
     */
    @Override
    public Uninterested selectUninterestedById(Long uninterestedId) {
        return uninterestedMapper.selectUninterestedById(uninterestedId);
    }

    /**
     * 查询不感兴趣
     *
     * @param uninterested 不感兴趣
     * @return 不感兴趣
     */
    @Override
    public Uninterested selectUninterestedOne(Uninterested uninterested) {
        return uninterestedMapper.selectUninterestedOne(uninterested);
    }

    /**
     * 查询不感兴趣列表
     * 
     * @param uninterested 不感兴趣
     * @return 不感兴趣
     */
    @Override
    public List<Uninterested> selectUninterestedList(Uninterested uninterested) {
        return uninterestedMapper.selectUninterestedList(uninterested);
    }

    /**
     * 新增不感兴趣
     * 
     * @param uninterested 不感兴趣
     * @return 结果
     */
    @Override
    public int insertUninterested(Uninterested uninterested) {
        uninterested.setCreateTime(DateUtils.getNowDate());
        return uninterestedMapper.insertUninterested(uninterested);
    }

    /**
     * 修改不感兴趣
     * 
     * @param uninterested 不感兴趣
     * @return 结果
     */
    @Override
    public int updateUninterested(Uninterested uninterested) {
        uninterested.setUpdateTime(DateUtils.getNowDate());
        return uninterestedMapper.updateUninterested(uninterested);
    }

    /**
     * 批量删除不感兴趣
     * 
     * @param uninterestedIds 需要删除的不感兴趣ID
     * @return 结果
     */
    @Override
    public int deleteUninterestedByIds(Long[] uninterestedIds) {
        return uninterestedMapper.deleteUninterestedByIds(uninterestedIds);
    }

    /**
     * 删除不感兴趣信息
     * 
     * @param uninterestedId 不感兴趣ID
     * @return 结果
     */
    @Override
    public int deleteUninterestedById(Long uninterestedId) {
        return uninterestedMapper.deleteUninterestedById(uninterestedId);
    }
}
